import bean.Student;
import dao.StudentDaoImpl;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class DateSourceTest {
    @Test
    public void test(){
        ClassPathXmlApplicationContext classPathXmlApplicationContext =
                new ClassPathXmlApplicationContext( "applicationContext.xml");
        StudentDaoImpl studentsDao = classPathXmlApplicationContext.getBean("studentsDaoImpl", StudentDaoImpl.class);

        int i = studentsDao.update(new Student("2", "2018", "计算机与科学", "男", "张三"));
    }
}
